package com.eduhzy.ttw.clazz.mvp.model.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author xubo
 * @date 2018/12/4 10:32
 */
public class ReviewGroupData implements Parcelable {

    /**
     * classId : 126
     * improvingScore : 0
     * praiseScore : 0
     * studentCount : 2
     * studentNames : 徐爱 薛侃
     * teacherId : 340328
     * teamId : 1
     * teamName : 第一组
     * teamType : 1
     */

    private int classId;
    private int improvingScore;
    private int praiseScore;
    private int studentCount;
    private String studentNames;
    private int teacherId;
    private int teamId;
    private String teamName;
    private int teamType;

    public int getClassId() {
        return classId;
    }

    public void setClassId(int classId) {
        this.classId = classId;
    }

    public int getImprovingScore() {
        return improvingScore;
    }

    public void setImprovingScore(int improvingScore) {
        this.improvingScore = improvingScore;
    }

    public int getPraiseScore() {
        return praiseScore;
    }

    public void setPraiseScore(int praiseScore) {
        this.praiseScore = praiseScore;
    }

    public int getStudentCount() {
        return studentCount;
    }

    public void setStudentCount(int studentCount) {
        this.studentCount = studentCount;
    }

    public String getStudentNames() {
        return studentNames;
    }

    public void setStudentNames(String studentNames) {
        this.studentNames = studentNames;
    }

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public int getTeamType() {
        return teamType;
    }

    public void setTeamType(int teamType) {
        this.teamType = teamType;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.classId);
        dest.writeInt(this.improvingScore);
        dest.writeInt(this.praiseScore);
        dest.writeInt(this.studentCount);
        dest.writeString(this.studentNames);
        dest.writeInt(this.teacherId);
        dest.writeInt(this.teamId);
        dest.writeString(this.teamName);
        dest.writeInt(this.teamType);
    }

    public ReviewGroupData() {
    }

    protected ReviewGroupData(Parcel in) {
        this.classId = in.readInt();
        this.improvingScore = in.readInt();
        this.praiseScore = in.readInt();
        this.studentCount = in.readInt();
        this.studentNames = in.readString();
        this.teacherId = in.readInt();
        this.teamId = in.readInt();
        this.teamName = in.readString();
        this.teamType = in.readInt();
    }

    public static final Creator<ReviewGroupData> CREATOR = new Creator<ReviewGroupData>() {
        @Override
        public ReviewGroupData createFromParcel(Parcel source) {
            return new ReviewGroupData(source);
        }

        @Override
        public ReviewGroupData[] newArray(int size) {
            return new ReviewGroupData[size];
        }
    };
}
